package com.ruoyi.dbgl.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 电表数据采集对象 tb_dbgl_sjcj
 * 
 * @author ruoyi
 * @date 2024-06-11
 */
public class TbDbglSjcj extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 电表编号 */
    @Excel(name = "电表编号")
    private String dbbh;

    /** 采集器编号 */
    @Excel(name = "采集器编号")
    private String cjqbh;

    /** 总用量 */
    @Excel(name = "总用量")
    private BigDecimal zyl;

    /** 采集时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "采集时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cjsj;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setDbbh(String dbbh) 
    {
        this.dbbh = dbbh;
    }

    public String getDbbh() 
    {
        return dbbh;
    }
    public void setCjqbh(String cjqbh) 
    {
        this.cjqbh = cjqbh;
    }

    public String getCjqbh() 
    {
        return cjqbh;
    }
    public void setZyl(BigDecimal zyl) 
    {
        this.zyl = zyl;
    }

    public BigDecimal getZyl() 
    {
        return zyl;
    }
    public void setCjsj(Date cjsj) 
    {
        this.cjsj = cjsj;
    }

    public Date getCjsj() 
    {
        return cjsj;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("dbbh", getDbbh())
            .append("cjqbh", getCjqbh())
            .append("zyl", getZyl())
            .append("cjsj", getCjsj())
            .toString();
    }
}
